<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script type="text/javascript" src="/hansot/jquery.js"></script>
<script type="text/javascript">

function formCheck() {		
		var form = window.document.memberSearchform;
		if (!form.memberId.value) {
			alert("아이디을 넣으세요");
			form.memberId.focus();
			return false;
		}
};
		
</script>
<h2>회원 검색</h2><font color="red" size="2">${requestScope.message }</font><br>
<p>
<form name="memberSearchform" action="/hansot/memberSearch.do" onsubmit="return formCheck()">
	ID : <input type="text" name="memberId" id="memberId"> 
	<input type="submit" value="검색" /> <input type="reset" value="재입력" />
<hr>
<table border="1">
				<tr>
					<td align="center">ID :</td>
					<td>${requestScope.mto.memberId }</td>
				</tr>
				<tr>
					<td align="center">이름 :</td>
					<td>${requestScope.mto.name }</td>
				</tr>
				<tr>
					<td align="center">생년 월일 :</td>
					<td>${requestScope.mto.birthday }</td>
				</tr>
				<tr>
					<td align="center">주소 :</td>
					<td>
						<table>
							<tr>
								<td>우편번호 :</td>
								<td>${requestScope.zipcode }</td>
							</tr>
							<tr>
								<td>주소 :</td>
								<td>${requestScope.smAddress }</td>
							</tr>
							<tr>
								<td>상세 주소 :</td>
								<td>${requestScope.mto.address }</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td align="center">e-mail :</td>
					<td>${requestScope.mto.email }</td>
				</tr>
				<tr>
					<td align="center">phone :</td>
					<td>${requestScope.mto.phoneNo }</td>
				</tr>
			</table><br>
	<a href="/hansot/mainPage.do">메인으로 가기</a>
</form>
